<template>
    <div>
      <div class="demo-nav">
        <div class="demo-nav__title">设置</div>
        <svg viewBox="0 0 1000 1000" class="demo-nav__back" @click="toBack">
          <path fill-rule="evenodd" fill="#969799" d="M296.114 508.035c-3.22-13.597.473-28.499 11.079-39.105l333.912-333.912c16.271-16.272 42.653-16.272 58.925 0s16.272 42.654 0 58.926L395.504 498.47l304.574 304.574c16.272 16.272 16.272 42.654 0 58.926s-42.654 16.272-58.926 0L307.241 528.058a41.472 41.472 0 0 1-11.127-20.023z"></path>
        </svg>
      </div>
      <div align="left">
        <router-link :to="'/PersonalData'"><van-cell title="个人资料" is-link/></router-link>
        <router-link :to="'/AccountSecurity'"><van-cell title="账户与安全" is-link/></router-link>
        <!--<router-link @click="shezhimi()" :to="'/ShezhiMima'">-->
        <!--<van-cell @click="shezhimi()" title="施工队支付密码" is-link/>-->
        <van-cell title="版权信息" is-link />
        <van-cell title="当前版本" value="2.3.0"/>
        <router-link :to="'/QRCode'"><van-cell title="二维码名片" is-link/></router-link>
      </div>
      <van-button type="primary" size="large" style="margin-top: 10rem;width: 90%" @click="logOut">退出登录</van-button>
    </div>
</template>

<script>
  import { passwordedit,passwordadd } from "@/api/customer/passwordcode";

  import local from '@/utils/localStorage.js';

  export default {
    name: "SetUp",
    data(){
      return{
        // form:{}
      }
    },
    created() {

    },
    methods:{

      // shezhimi(){
      //
      //   passwordadd(this.form).then(res=>{
      //
      //     this.$router.push({
      //       path:"/ShezhiMima",
      //       // query:{customerId: this.form.customerId}
      //     });
      //   })
      // },

      //返回上一层
      toBack(){
        this.$router.go(-1);
      },
      // 退出登录
      logOut(){
        local.remove("token");
        this.$router.push({path:"/login_index"})
      },
    }
  }
</script>

<style scoped>
  .demo-nav{
    position: relative;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    height: 56px;
    background-color: #fff;
    font-size: 1.1rem;
  }
  .demo-nav__back{
    position: absolute;
    top: 16px;
    left: 16px;
    width: 24px;
    height: 24px;
    cursor: pointer;
  }
</style>
